<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'detail-perjalanan-travel-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Baris dengan <span class="required">*</span> wajib diisi.</p>

	<?php echo $form->errorSummary($model); ?>
	
	<div class="row">
		<?php echo $form->labelEx($model,'ID_KOTA'); ?>
		<!--?php echo $form->textField($model,'ID_KOTA'); ?!-->
       <?php echo $form->dropDownList($model,'ID_KOTA',$model->getMenuList()); ?>
		<?php echo $form->error($model,'ID_KOTA'); ?>
	</div>
    

	<div class="row">
		<?php echo $form->labelEx($model,'KOT_ID_KOTA'); ?>
		<?php echo $form->dropDownList($model,'KOT_ID_KOTA',$model->getMenuList()); ?>
		<?php echo $form->error($model,'KOT_ID_KOTA'); ?>
	</div>

<?php /*
	<div class="row">
		<?php echo $form->labelEx($model,'ID_TRAVEL'); ?>
		<?php echo $form->textField($model,'ID_TRAVEL'); ?>
		<?php echo $form->error($model,'ID_TRAVEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ID_TRANSAKSI'); ?>
		<?php echo $form->textField($model,'ID_TRANSAKSI'); ?>
		<?php echo $form->error($model,'ID_TRANSAKSI'); ?>
	</div>
*/ ?>
	<div class="row">
		<?php echo $form->labelEx($model,'TGL_BERANGKAT'); ?>
		<?php echo $form->widget('zii.widgets.jui.CJuiDatePicker', array(    
  			'model'=>$model,
			'attribute'=>'TGL_BERANGKAT',
			'language'=>'id',
			// additional javascript options for the date picker plugin
			'options'=>array(
				'showAnim'=>'slide',
				'dateFormat'=>'yy-mm-dd',
				'minDate'=>'0',
			),
			'htmlOptions'=>array(
				'style'=>'height:15px;',
				 'style'=>'width:80px;vertical-align:top'
			),
		),true); ?>
		<?php echo $form->error($model,'TGL_BERANGKAT'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'TGL_PULANG'); ?>
		<?php echo $form->widget('zii.widgets.jui.CJuiDatePicker', array(    
  			'model'=>$model,
			'attribute'=>'TGL_PULANG',
			'language'=>'id',
			// additional javascript options for the date picker plugin
			'options'=>array(
				'showAnim'=>'slide',
				'dateFormat'=>'yy-mm-dd',
				'minDate'=>'0',
			),
			'htmlOptions'=>array(
				'style'=>'height:15px;',
				 'style'=>'width:80px;vertical-align:top'
			),
		),true); ?>
		<?php echo $form->error($model,'TGL_PULANG'); ?>
	</div>
	<?php echo "Format waktu: hh:mm:ss"?>
	<div class="row">
		<?php echo $form->labelEx($model,'JAM_BERANGKAT'); ?>
		<?php echo $form->textField($model,'JAM_BERANGKAT'); ?>
		<?php echo $form->error($model,'JAM_BERANGKAT'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'JAM_PULANG'); ?>
		<?php echo $form->textField($model,'JAM_PULANG'); ?>
		<?php echo $form->error($model,'JAM_PULANG'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'HARGA_TIKET'); ?>
		<?php echo $form->textField($model,'HARGA_TIKET'); ?>
		<?php echo $form->error($model,'HARGA_TIKET'); ?>
	</div>
<?php echo "Durasi dalam menit"?>
	<div class="row">
		<?php echo $form->labelEx($model,'DURASI_TRAVEL'); ?>
		<?php echo $form->textField($model,'DURASI_TRAVEL'); ?>
		<?php echo $form->error($model,'DURASI_TRAVEL'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'KELAS_TRAVEL'); ?>
		<?php echo $form->textField($model,'KELAS_TRAVEL',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'KELAS_TRAVEL'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->